package com.ssm.opa.common.entity.dto;

import com.ssm.opa.common.base.constants.ErrorCode;

import java.io.Serializable;

/**
 * <p/>
 * Copyright: Copyright (c) 2017/9/28
 * <p/>
 * Company: 途牛科技有限公司华东分公司
 * <p/>
 * 接口返回数据格式
 * @author lubin2@tuniu.com
 * @version 1.0.0
 * @project gtb-parent
 */
public class BaseResponse implements Serializable{

	private static final long serialVersionUID = 1L;

	//请求时长
	private long callTime = 0;

	// 成功标记
	protected boolean success = true;

	// 提示信息
	protected String msg = "";

	// 错误码
	protected int errorCode = ErrorCode.SUCCESS;

	// 返回的具体数据
	protected Object data;

	public long getCallTime() {
		return callTime;
	}

	public void setCallTime(long callTime) {
		this.callTime = callTime;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
